package com.emm.yixun.common.model.dto;

import net.sf.oval.constraint.NotEmpty;
import net.sf.oval.constraint.Range;

/**
 * 类描述： 公寓Model 创建者： ThinkPad 项目名称： emm-website 创建时间： 2016年5月25日 下午4:54:51 版本号： v1.0
 */
public class ApartmentModel {
	// @NotEmpty(message="组团信息不能为空!")
	private String excel_0; // 组团
	@NotEmpty(message="大楼不能为空!")
	private String excel_1; // 大楼
	// @NotEmpty(message="单元不能为空!")
	private String excel_2; // 单元
	@Range(min = -100, max = 10000, message = "楼层只能为数字")
	private String excel_3; // 楼层
	@NotEmpty(message = "房号不能为空!")
	private String excel_4; // 房号
	@NotEmpty(message = "房产类型不能为空!")
	private String excel_5; // 房产类型
	private String excel_6; // 户型名称
	private String excel_7; // 房型
	@Range(min = 0, max = 10000, message = "房屋建筑面积只能为数字")
	private String excel_8; // 房屋建筑面积
	/*@NotEmpty(message = "套内建筑面积不能为空!")*/
	private String excel_9; // 套内建筑面积
	//@Range(min = 0, max = 10000, message = "分摊面积只能为数字")
	private String excel_10; // 分摊面积
	//@Range(min = 0, max = 10000, message = "赠送面积只能为数字")
	private String excel_11; // 赠送面积
	//@Range(min = 0, max = 10000, message = "地下面积只能为数字")
	private String excel_12; // 地下面积
	/*@NotEmpty(message = "状态不能为空!")*/
	/*private String excel_15; // 销售状态
*/	// @NotEmpty(message = "备注不能为空!")
	/*private String excel_16; // 备注
*/	/*@NotEmpty(message = "业态不能为空")*/
	private String excel_17; // 大业态 
	private String excel_18; // 业态 industMarkEnum

	public String getExcel_2() {
		return excel_2;
	}

	public void setExcel_2(String excel_2) {
		if (excel_2 == null || excel_2 == "") {
			this.excel_2 = excel_2;
		} else {
			if (isNumeric(excel_2)) {
				this.excel_2 = new Double(excel_2).intValue() + "";
			} else {
				this.excel_2 = excel_2;
			}

		}

	}

	public String getExcel_3() {
		return excel_3;
	}

	public void setExcel_3(String excel_3) {
		if (excel_3 == null || excel_3 == "") {
			this.excel_3 = excel_3;
		} else {
			if (isNumeric(excel_3)) {
				this.excel_3 = new Double(excel_3).intValue() + "";
			} else {
				this.excel_3 = excel_3;
			}

		}

	}

	public String getExcel_0() {
		return excel_0;
	}

	public void setExcel_0(String excel_0) {
		this.excel_0 = excel_0;
	}

	public String getExcel_1() {
		return excel_1;
	}

	public void setExcel_1(String excel_1) {
		if (excel_1 == null || excel_1 == "") {
			this.excel_1 = excel_1;
		} else {
			if (isNumeric(excel_1)) {
				this.excel_1 = new Double(excel_1).intValue() + "";
			} else {
				this.excel_1 = excel_1;
			}

		}
	}

	public String getExcel_4() {
		return excel_4;
	}

	public void setExcel_4(String excel_4) {

		if (excel_4 == null || excel_4 == "") {
			this.excel_4 = excel_4;
		} else {
			if (isNumeric(excel_4)) {
				this.excel_4 = new Double(excel_4).intValue() + "";
			} else {
				this.excel_4 = excel_4;
			}

		}
	}

	public String getExcel_5() {
		return excel_5;
	}

	public void setExcel_5(String excel_5) {
		this.excel_5 = excel_5;
	}

	public String getExcel_6() {
		return excel_6;
	}

	public void setExcel_6(String excel_6) {
		this.excel_6 = excel_6;
	}

	public String getExcel_7() {
		return excel_7;
	}

	public void setExcel_7(String excel_7) {
		this.excel_7 = excel_7;
	}

	public String getExcel_8() {
		return excel_8;
	}

	public void setExcel_8(String excel_8) {
		this.excel_8 = excel_8;
	}

	public String getExcel_9() {
		return excel_9;
	}

	public void setExcel_9(String excel_9) {
		this.excel_9 = excel_9;
	}

	public String getExcel_10() {
		return excel_10;
	}

	public void setExcel_10(String excel_10) {
		this.excel_10 = excel_10;
	}

	public String getExcel_11() {
		return excel_11;
	}

	public void setExcel_11(String excel_11) {
		this.excel_11 = excel_11;
	}

	public String getExcel_12() {
		return excel_12;
	}

	public void setExcel_12(String excel_12) {
		this.excel_12 = excel_12;
	}

/*	public String getExcel_15() {
		return excel_15;
	}

	public void setExcel_15(String excel_15) {
		this.excel_15 = excel_15;
	}*/

	/*public String getExcel_16() {
		return excel_16;
	}

	public void setExcel_16(String excel_16) {
		this.excel_16 = excel_16;
	}
*/
	public boolean isNumeric(String str) {
		try {
			Double.valueOf(str);
		} catch (Exception e) {
			return false;
		}
		return true;
	}
	
	public String getExcel_17() {
		return excel_17;
	}

	public void setExcel_17(String excel_17) {
		this.excel_17 = excel_17;
	}

	public String getExcel_18() {
		return excel_18;
	}

	public void setExcel_18(String excel_18) {
		this.excel_18 = excel_18;
	}
}
